package cn.edu.ujs.coor.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * 用户Entity
 *
 * @author 柳曾雄
 * @date 2018-07-16
 */
@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "coor_user")
public class User extends BaseEntity {

    /**
     * 用户编号
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 用户姓名
     */
    @Column(name = "name")
    private String name;

    /**
     * 头像
     */
    @Column(name = "portrait")
    private String portrait;

    /**
     * 性别
     */
    @Column(name = "gender")
    private String gender;

    /**
     * 用户联系方式
     */
    @Column(name = "phone")
    private String phone;

    /**
     * 用户邮箱
     */
    @Column(name = "email")
    private String email;

    /**
     * 用户密码
     */
    @Column(name = "password")
    private String password;

    /**
     * 组织编号
     */
    @Column(name = "organization_id")
    private String organizationId;

    @Transient
    private String dataLevel;
}
